calendar object
This method will add a number of hours to the hour property.
bool add_hours(int hours)
Parameters:
hours
The number of hours to add.
Return value:
true on success, false on failure.
Remarks:
A negative value in the hours parameter will subtract hours from the current hour.
Any number of hours can be added or subtracted. The date values will adjust themselves accordingly.
Example:
// Create a calendar and set it to October 7, 1767 at 09:00 and add three hours.
void main()
{
calendar test;
test.set(1767, 10, 7, 9, 0, 0);
test.add_hours(3);
alert("Date", "The date is "+test.weekday_name+", "+test.month_name+" "+test.day+", "+test.year+", at "+test.hour+":"+test.minute+":"+test.second);
}